<%@page import="cn.edu.nju.ws.sview.wyge.relations.datasets.DatasetItem"%>
<%@page import="java.net.URLEncoder"%>
<%@page import="cn.edu.nju.ws.sview.wyge.relations.adataset.CustomDataset"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
    String lang = request.getParameter("lang");
    if (lang != null && lang.equals("zh")) {
	   request.getRequestDispatcher("dataset_docs_zh.jsp").forward(
			request, response);
    } else if (lang == null) {
	    lang = "en";
    }
	String idStr = request.getParameter("id");
	int datasetId = 0;
	String datasetName = null;
	if (idStr == null) {
		String location = "/sview/relations/index.jsp";
		response.sendRedirect(location);
	} else {
		datasetId = Integer.parseInt(idStr);
		datasetName = DatasetItem.getShowNameByDatasetID(datasetId, "custom", lang);//CustomDataset.getNameByCustomDatasetID(datasetId);
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RDF Documents in <%=datasetName %></title>
<link rel="icon" href="/sview/favicon.ico" />
<link rel="stylesheet" type="text/css" href="/sview/css/layout.css" />
<link rel="stylesheet" type="text/css"
	href="/sview/css/smoothness/jquery-ui-1.8.16.custom.css" />
<link rel="stylesheet" type="text/css" href="/sview/css/relations/dataset_docs.css" />
<script type="text/javascript" src="/sview/script/jquery.js"></script>
<script type="text/javascript"
	src="/sview/script/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="/sview/script/global.js"></script>
<script type="text/javascript" src="/sview/script/relations/dataset_docs.js"></script>
</head>
<body>
<jsp:include page="/vheader.jsp" flush="true">
   <jsp:param name="f" value="d"/>
</jsp:include>
	
<div class="container">
	<div class="entity-list" >
	</div>
</div>
<input type="hidden" id="display-lang" value="en" />
<input type="hidden" id="dataset" value="<%=idStr %>" />
<jsp:include page="/vfooter.jsp"></jsp:include>
</body>
</html>